﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Dynamics.NAV.Metro.Data
{
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
    public class NavGLEntry
    {
        public int Index;

        [XmlElementAttribute("Entry_No")]
        public string EntryNo { get; set; }
        
        [XmlElementAttribute("Description")]
        public string Description { get; set; }

        [XmlElementAttribute("Posting_Date")]
        public DateTime PostingDate { get; set; }

        [XmlElementAttribute("Document_Type")]
        public string DocumentType { get; set; }

        [XmlElementAttribute("Document_No")]
        public string DocumentNo { get; set; }

        [XmlElementAttribute("Global_Dimension_1_Code")]
        public string GlobalDimension1Code { get; set; }

        [XmlElementAttribute("Global_Dimension_2_Code")]
        public string GlobalDimension2Code { get; set; }

        [XmlElementAttribute("Bal_Account_Type")]
        public string BalAccountType { get; set; }

        [XmlElementAttribute("Bal_Account_No")]
        public string BalAccountNo { get; set; }

        [XmlElementAttribute("Amount")]
        public double Amount { get; set; }
    }
}
